import Vue from 'vue';
const context = require.context('./libs/', true, /index\.vue$/);

context.keys().forEach((key) => {
  const com = context(key);
  const [, name] = key.split('/');
  Vue.component(`s-${name}`, com.default);
});
